package com.felix.controller;

import com.felix.service.ILogService;
import com.felix.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * LogController
 *
 * @author xjh
 * @version 1.0
 * @date 2019-05-21
 */
@RestController
public class LogController {

    private final LogService logService;
    private final ILogService iLogService;

    @Autowired
    public LogController(LogService logService, ILogService iLogService) {
        this.logService = logService;
        this.iLogService = iLogService;
    }

    @GetMapping("/log")
    public void log() {
        logService.method1("xuejh", 18);
    }

    @GetMapping("/log1")
    public void log1() {
        iLogService.method1("xuejh", 18);
    }
}
